package viroyal.com.base.net.entity;

import com.google.gson.annotations.SerializedName;

import org.kymjs.kjframe.database.annotate.Id;
import org.kymjs.kjframe.database.annotate.Property;
import org.kymjs.kjframe.database.annotate.Table;

/**
 * @author chenjunwei
 * @desc 课程信息
 * @date 2019/4/28
 *
 *  "id": 15766,
 *             "replaceId": null,
 *             "unitId": "1002",
 *             "classId": 6,
 *             "classNo": 4,
 *             "className": "一年级二班",
 *             "gradeNo": 1,
 *             "courseDate": null,
 *             "week": 3,
 *             "num": 4,
 *             "startTime": "10:40",
 *             "endTime": "11:20",
 *             "courseId": 20,
 *             "courseName": "美术",
 *             "userId": "course5",
 *             "teacherName": "测试老师5",
 *             "teacherAvatar": null,
 *             "phone": null
 */
@Table(name = "class")
public class Timetables {
  /**
   * 课程id
   */
  @SerializedName("courseId")
  @Id(column = "id", autoInc = true)
  public int id;
  /**
   * 第几节课
   */
  @SerializedName("num")
  @Property(column = "lesson")
  public int lesson;
  /**
   * 星期几
   */
  @SerializedName("week")
  @Property(column = "week")
  public int week;
  /**
   * 开始时间
   */
  @SerializedName("startTime")
  @Property(column = "starttime")
  public String starttime;
  /**
   * 结束时间
   */
  @SerializedName("endTime")
  @Property(column = "endtime")
  public String endtime;
  /**
   * 课程名称
   */
  @SerializedName("courseName")
  @Property(column = "name")
  public String name;
  /**
   * 老师名字
   */
  @SerializedName("teacherName")
  @Property(column = "teathername")
  public String teathername;
  /**
   * 老师头像
   */
  @SerializedName("teacherAvatar")
  @Property(column = "teatherurl")
  public String teatherurl;

  /**
   * 班级名称
   */
  @SerializedName("className")
  @Property(column = "classname")
  public String className;

  @Property(column = "start")
  /**
   * 开始时间
   */
  public long start = 0;
  /**
   * 结束时间
   */
  @Property(column = "end")
  public long end = 0;

  public Timetables() {

  }

  public Timetables(int id, int lesson, int week, long starttime, long endtime, String name, String teathername, String teatherurl) {
    this.id = id;
    this.lesson = lesson;
    this.week = week;
    this.start = starttime;
    this.end = endtime;
    this.name = name;
    this.teathername = teathername;
    this.teatherurl = teatherurl;
  }
}
